<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<script>

selection_test(
  '<div contenteditable dir="ltr">|\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0|\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-0 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0|\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1|\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-1 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1|\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2|<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-2 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2|<input>abc<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>|abc<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-3 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>|abc<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>a|bc<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-4 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>a|bc<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>ab|c<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-5 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>ab|c<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc|<img><img>def\u05D3\u05D4\u05D5</div>',
  '28-6 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc|<img><img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img>|<img>def\u05D3\u05D4\u05D5</div>',
  '28-7 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img>|<img>def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>|def\u05D3\u05D4\u05D5</div>',
  '28-8 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>|def\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>d|ef\u05D3\u05D4\u05D5</div>',
  '28-9 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>d|ef\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>de|f\u05D3\u05D4\u05D5</div>',
  '28-10 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>de|f\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def|\u05D3\u05D4\u05D5</div>',
  '28-11 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def|\u05D3\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3|\u05D4\u05D5</div>',
  '28-12 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3|\u05D4\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4|\u05D5</div>',
  '28-13 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4|\u05D5</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5|</div>',
  '28-14 ltr right character');

selection_test(
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5|</div>',
  selection => selection.modify('move', 'right', 'character'),
  '<div contenteditable dir="ltr">\u05D0\u05D1\u05D2<input>abc<img><img>def\u05D3\u05D4\u05D5|</div>',
  '28-15 ltr right character');
</script>
